﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace Sustainalytics.ClientWebsites.Service
{
    public static class HostConfig
    {
        public static string GetHostUrl()
        {
            string url = ConfigurationManager.AppSettings["hostUrl"];
#if !DEBUG
            var uriBuilder = new UriBuilder(url);
            uriBuilder.Scheme = Uri.UriSchemeHttps;
            uriBuilder.Port = Int32.Parse(ConfigurationManager.AppSettings["httpsPort"]);
            url = uriBuilder.Uri.ToString();
#endif
            return url;
        }
    }
}
